import {
  Router
} from 'express'
import {signature} from '../webchat/index'
const router = Router();
router.get('/signature',async (req,res,next)=>{
 try {
  const { url } = req.query
  let sign = await signature(url)
  return res.send({
    status:1,
    code:0,
    data:sign
  })
 } catch (error) {
  return res.send({
    status:0,
    code:0,
    msg:'初始化错误',
    data:{}
  })
 }
})
export default router